<template>
  <div class="travel-recommend">
    <h2>推荐攻略</h2>
    <button @click="jumpPage">写游记</button>
  </div>
</template>

<script>
export default {
  methods: {
    jumpPage() {
      this.$router.push({
        path: "/post/create"
      });
    }
  }
};
</script>

<style lang="less" scoped>
.travel-recommend {
  display: flex;
  justify-content: space-between;
  width: 700px;
  h2 {
    color: orange;
    font-weight: normal;
    padding-top: 10px;
  }
  button {
    color: #fff;
    width: 100px;
    background-color: #409eff;
    border: none;
    border-radius: 5px;
  }
}
</style>
